Package com.isode.x400api
Class Session
java.lang.Object
com.isode.x400api.Session
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 setvoid
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).
-
Field Details
-
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.
-