public abstract class TEndpointTransport extends TTransport
| Modifier and Type | Field and Description |
|---|---|
protected long |
knownMessageSize |
protected long |
remainingMessageSize |
| Constructor and Description |
|---|
TEndpointTransport(TConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkReadBytesAvailable(long numBytes)
Throws if there are not enough bytes in the input stream to satisfy a read of numBytes bytes of data
|
protected void |
countConsumedMessageBytes(long numBytes)
Consumes numBytes from the RemainingMessageSize.
|
TConfiguration |
getConfiguration() |
protected long |
getMaxMessageSize() |
protected void |
resetConsumedMessageSize(long newSize)
Resets RemainingMessageSize to the configured maximum
|
void |
updateKnownMessageSize(long size)
Updates RemainingMessageSize to reflect then known real message size (e.g.
|
close, consumeBuffer, flush, getBuffer, getBufferPosition, getBytesRemainingInBuffer, isOpen, open, peek, read, read, readAll, write, write, writeprotected long knownMessageSize
protected long remainingMessageSize
public TEndpointTransport(TConfiguration config) throws TTransportException
TTransportExceptionprotected long getMaxMessageSize()
public TConfiguration getConfiguration()
getConfiguration in class TTransportprotected void resetConsumedMessageSize(long newSize)
throws TTransportException
newSize - TTransportExceptionpublic void updateKnownMessageSize(long size)
throws TTransportException
updateKnownMessageSize in class TTransportsize - TTransportExceptionpublic void checkReadBytesAvailable(long numBytes)
throws TTransportException
checkReadBytesAvailable in class TTransportnumBytes - TTransportExceptionprotected void countConsumedMessageBytes(long numBytes)
throws TTransportException
numBytes - TTransportException