Class Session

java.lang.Object
com.isode.x400api.Session

public class Session extends Object
Provides the Session class used by the X.400 class. Hold sessions information to pass across the API in an opaque manner.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    If this Session is waiting for new messages to arrive, cause the wait to terminate.
    void
    Enable this session to wait for messages again.
    int
    Returns the number of messages waiting from the most recent MSOpen call.
    boolean
    Returns true if summarize on binds are set
    void
    SetSummarizeOnBind(boolean val)
    When binding to the Message Store, by default it checks the number of messages that are available to be read (regardless of their status).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ret_str

      public String ret_str
  • Constructor Details

    • Session

      public Session()
  • Method Details

    • GetNumMsgs

      public int GetNumMsgs()
      Returns the number of messages waiting from the most recent MSOpen call.
    • SetSummarizeOnBind

      public void SetSummarizeOnBind(boolean val)
      When binding to the Message Store, by default it checks the number of messages that are available to be read (regardless of their status). This operation can be quite expensive if there are lots of messages in the mailbox. If you want to speed up the bind operation, then set SetSummarizeOnBind(false). The default is SetSummarizeOnBind(true). If you want to find out how many messages are available, use GetNumMsgs()
    • GetSummarizeOnBind

      public boolean GetSummarizeOnBind()
      Returns true if summarize on binds are set
    • cancelWait

      public void cancelWait()
      If this Session is waiting for new messages to arrive, cause the wait to terminate.
    • enableWait

      public void enableWait()
      Enable this session to wait for messages again.