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
  • Field Details

    • CLASS_VERSION

      public static final String CLASS_VERSION
      See Also:
    • DEFAULT_BUFFERSIZE

      public static final int DEFAULT_BUFFERSIZE
      Buffer 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

      public InboundQueueingInputStream(InboundSession session)
    • InboundQueueingInputStream

      public InboundQueueingInputStream(InboundSession session, int bufferSize)
  • Method Details

    • read

      public int read() throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException
      Specified by:
      read in class InputStream
      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 class InputStream
      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 class InputStream
      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 class InputStream
      Throws:
      IOException
      com.ibm.ctg.server.isc.exceptions.SessionInterruptException
    • available

      public int available() throws IOException
      Note: The size returned takes into account the marked buffer, therefore may be bigger than buffer size.
      Overrides:
      available in class InputStream
      Throws:
      IOException
    • mark

      public void mark(int readlimit)
      Do not use this method, this input stream does not support marking.
      Overrides:
      mark in class InputStream
    • reset

      public void reset() throws IOException
      Overrides:
      reset in class InputStream
      Throws:
      IOException
    • markSupported

      public boolean markSupported()
      Overrides:
      markSupported in class InputStream
    • 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

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException
    • interruptStream

      public void interruptStream(InboundQueueingInputStream.CloseReason reason)
    • 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

      public String getTrackableName()
      Specified by:
      getTrackableName in interface com.ibm.ctg.util.TraceTrackable