Package org.jppf.io
Class OverflowDetectorCallback
java.lang.Object
org.jppf.io.OverflowDetectorCallback
- All Implemented Interfaces:
NotifyingStreamCallback
This callback throws an IOException whenever the cumulated size of the data
written to a stream exceeds
Integer.MAX_VALUE.- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbytesNotification(long length) Notify that some bytes were read, written or skipped.
-
Constructor Details
-
OverflowDetectorCallback
public OverflowDetectorCallback()
-
-
Method Details
-
bytesNotification
Description copied from interface:NotifyingStreamCallbackNotify that some bytes were read, written or skipped.- Specified by:
bytesNotificationin interfaceNotifyingStreamCallback- Parameters:
length- the number of bytes.- Throws:
IOException- if any I/O error occurs.
-