|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CountExceedsStream
This class defines an FinishingActionStream, where in addition, also an Action is triggered everytime the count of read or written or skipped bytes exceeds a defined value.
| Method Summary | |
|---|---|
long |
getCountThreshold()
Returns the defined threshold of the count |
FinishingAction |
getExceedsAction()
Returns the action that will be performed to finish |
void |
performExceedsAction()
Performs the action for the event of exceeding the defined count |
void |
setCountThreshold(long countThreshold)
Sets the threshold on which the action should happen |
void |
setExceedsAction(FinishingAction exceedsAction)
Sets the action that should be finished when the count is exceeded |
| Methods inherited from interface org.gcube.contentmanagement.baselayer.streamutils.FinishingActionStream |
|---|
exceptionBeforeFinishing, finish, getCount, getFinishingAction, getWrappedStream, incrementCount, resetCount, resetExceptionBeforeFinishing, setFinishingAction, setWrappedStream |
| Method Detail |
|---|
void performExceedsAction()
throws java.io.IOException
java.io.IOException - if something goes wrong on the underlying streamlong getCountThreshold()
void setCountThreshold(long countThreshold)
countThreshold - the thresholdFinishingAction getExceedsAction()
void setExceedsAction(FinishingAction exceedsAction)
exceedsAction - the action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||