public class BufferSizeError extends Error
Error
:
One2OneChannel c = Channel.one2one (new Buffer (-42)); // must be >= 0 One2OneChannel c = Channel.one2one (new OverFlowingBuffer (-42)); // must be > 0 One2OneChannel c = Channel.one2one (new OverWriteOldestBuffer (-42)); // must be > 0 One2OneChannel c = Channel.one2one (new OverWritingBuffer (-42)); // must be > 0 One2OneChannel c = Channel.one2one (new InfiniteBuffer (-42)); // must be > 0Zero-buffered non-overwriting channels are, of course, the default channel semantics. The following constructions are all legal and equivalent:
One2OneChannel c = Channel.one2one (); One2OneChannel c = Channel.one2one (new ZeroBuffer ()); // less efficient One2OneChannel c = Channel.one2one (new Buffer (0)); // less efficientNo action should be taken to catch BufferSizeError. Application code generating it is in error and needs correcting.
Constructor and Description |
---|
BufferSizeError(String s) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BufferSizeError(String s)
Copyright © 1996–2016. All rights reserved.