Class InboundSessionPool

java.lang.Object
com.ibm.jakarta.connector2.cics.inbound.InboundSessionPool
All Implemented Interfaces:
com.ibm.ctg.util.TraceTrackable

public class InboundSessionPool extends Object implements com.ibm.ctg.util.TraceTrackable
  • Field Details

  • Method Details

    • initializePool

      public void initializePool(int poolSize)
    • reinitializePool

      public void reinitializePool(int poolSize)
    • getNewInboundConversation

      public InboundConversation getNewInboundConversation(String convId)
      Allocates a new conversation using a session from the free pool if there are free sessions available.
      Returns:
      the new conversation, or null if there are no free sessions
    • close

      public void close() throws IOException
      Closes the session pool by closing all sessions, stopping the receiver thread and closing the socket to CICS. Any existing conversations are marked as orphaned and passed back to the owning connection so that they can be retrieved later.
      Throws:
      IOException - if an I/O error occurs
    • resetPool

      public void resetPool()
    • getExistingInboundConversation

      public InboundConversation getExistingInboundConversation(Object transactionToken)
    • endConversation

      public void endConversation(InboundConversation conv)
      Called when a Gateway request has finished with the conversation. For example, when a transaction is complete.
      Parameters:
      conv - the conversation to end
    • associateTransactionToken

      public void associateTransactionToken(InboundConversation conv, Object token)
    • getIdleTime

      public long getIdleTime()
    • getSender

      public InboundSender getSender()
    • getReceiverThread

      public Thread getReceiverThread()
    • getReceiver

      public InboundReceiver getReceiver()
    • isSocketConnected

      public boolean isSocketConnected()

      Returns whether the socket the SessionPool owns is open and connected to CICS.

      Returns:
      Whether the socket is connected or not.
    • getTrackableName

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

      public InboundConnection getConnection()
    • getConvfromTransaction

      public InboundConversation getConvfromTransaction(Object txn)
    • allocateId

      public int allocateId()