Class InboundQueueingInputStream
java.lang.Object
java.io.InputStream
com.ibm.jakarta.connector2.cics.inbound.InboundQueueingInputStream
- All Implemented Interfaces:
com.ibm.ctg.util.TraceTrackable
,Closeable
,AutoCloseable
public class InboundQueueingInputStream
extends InputStream
implements com.ibm.ctg.util.TraceTrackable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final int
Buffer is set at 240k (4 x 60k chunks), which ties up with the pacing interval. -
Constructor Summary
ConstructorsConstructorDescriptionInboundQueueingInputStream
(InboundSession session) InboundQueueingInputStream
(InboundSession session, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionint
Note: The size returned takes into account the marked buffer, therefore may be bigger than buffer size.int
void
close()
void
Warning: this won't affect reads currently in progress on this stream.void
int
fillBufferFromSocket
(byte[] inputBuffer, int offset, int length) int
long
void
boolean
isFull()
void
mark
(int readlimit) Do not use this method, this input stream does not support marking.boolean
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) void
reset()
void
void
setOverallTimeout
(long overallTimeout) Warning: Timeout starts immediately from setting this method.long
skip
(long n) Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
CLASS_VERSION
- See Also:
-
DEFAULT_BUFFERSIZE
public static final int DEFAULT_BUFFERSIZEBuffer is set at 240k (4 x 60k chunks), which ties up with the pacing interval. The pacing message will be sent when the buffer is empty- See Also:
-
-
Constructor Details
-
InboundQueueingInputStream
-
InboundQueueingInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
com.ibm.ctg.server.isc.exceptions.SessionInterruptException
-
read
public int read(byte[] b) throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException - Overrides:
read
in classInputStream
- Throws:
IOException
com.ibm.ctg.server.isc.exceptions.SessionInterruptException
-
read
public int read(byte[] b, int off, int len) throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException - Overrides:
read
in classInputStream
- Throws:
IOException
com.ibm.ctg.server.isc.exceptions.SessionInterruptException
-
skip
public long skip(long n) throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException - Overrides:
skip
in classInputStream
- Throws:
IOException
com.ibm.ctg.server.isc.exceptions.SessionInterruptException
-
available
Note: The size returned takes into account the marked buffer, therefore may be bigger than buffer size.- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) Do not use this method, this input stream does not support marking.- Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
fillBufferFromSocket
public int fillBufferFromSocket(byte[] inputBuffer, int offset, int length) throws com.ibm.ctg.server.isc.exceptions.ConnectionException, IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException - Throws:
com.ibm.ctg.server.isc.exceptions.ConnectionException
IOException
com.ibm.ctg.server.isc.exceptions.SessionInterruptException
-
getBufferSize
public int getBufferSize() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
interruptStream
-
calculateRemainingTimeout
public int calculateRemainingTimeout() -
getOverallTimeout
public long getOverallTimeout() -
setOverallTimeout
public void setOverallTimeout(long overallTimeout) Warning: Timeout starts immediately from setting this method. -
disableOverallTimeout
public void disableOverallTimeout()Warning: this won't affect reads currently in progress on this stream. -
isFull
public boolean isFull() -
resetStreamForNewRequest
public void resetStreamForNewRequest() -
dumpBuffer
public void dumpBuffer() -
getTrackableName
- Specified by:
getTrackableName
in interfacecom.ibm.ctg.util.TraceTrackable
-