Uses of Interface
org.apache.qpid.protonj2.client.Session
-
Packages that use Session Package Description org.apache.qpid.protonj2.client org.apache.qpid.protonj2.client.impl -
-
Uses of Session in org.apache.qpid.protonj2.client
Methods in org.apache.qpid.protonj2.client that return Session Modifier and Type Method Description Session
Session. beginTransaction()
Opens a new transaction scoped to thisSession
if one is not already active.Session
Session. commitTransaction()
Commit the currently active transaction in this Session.Session
Connection. defaultSession()
Session
Connection. openSession()
Creates a newSession
instance for use by the client application.Session
Connection. openSession(SessionOptions options)
Creates a newSession
instance for use by the client application.Session
Session. rollbackTransaction()
Roll back the currently active transaction in this Session.Session
Receiver. session()
Session
Sender. session()
Methods in org.apache.qpid.protonj2.client that return types with arguments of type Session Modifier and Type Method Description java.util.concurrent.Future<Session>
Session. closeAsync()
Requests a close of theSession
at the remote and returns aFuture
that will be completed once the session has been remotely closed or an error occurs.java.util.concurrent.Future<Session>
Session. closeAsync(ErrorCondition error)
Requests a close of theSession
at the remote and returns aFuture
that will be completed once the session has been remotely closed or an error occurs.java.util.concurrent.Future<Session>
Session. openFuture()
-
Uses of Session in org.apache.qpid.protonj2.client.impl
Classes in org.apache.qpid.protonj2.client.impl that implement Session Modifier and Type Class Description class
ClientSession
Client implementation of the Session API.class
ClientStreamSession
A specializedClientSession
that is the parent of aClientStreamSender
orClientStreamReceiver
and cannot create any further resources as the lifetime of the session is tied to the childStreamSender
orStreamReceiver
.Methods in org.apache.qpid.protonj2.client.impl that return Session Modifier and Type Method Description Session
ClientSession. beginTransaction()
Session
ClientSession. commitTransaction()
Session
ClientConnection. defaultSession()
Session
ClientConnection. openSession()
Session
ClientConnection. openSession(SessionOptions sessionOptions)
Session
ClientSession. rollbackTransaction()
Methods in org.apache.qpid.protonj2.client.impl that return types with arguments of type Session Modifier and Type Method Description java.util.concurrent.Future<Session>
ClientSession. closeAsync()
java.util.concurrent.Future<Session>
ClientSession. closeAsync(ErrorCondition error)
java.util.concurrent.Future<Session>
ClientSession. openFuture()
Method parameters in org.apache.qpid.protonj2.client.impl with type arguments of type Session Modifier and Type Method Description ClientTransactionContext
ClientTransactionContext. begin(ClientFuture<Session> beginFuture)
Begin a new transaction if one is not already in play.ClientTransactionContext
ClientTransactionContext. commit(ClientFuture<Session> commitFuture, boolean startNew)
Commits the current transaction if one is active and is not failed into a roll-back only state.ClientTransactionContext
ClientTransactionContext. rollback(ClientFuture<Session> rollbackFuture, boolean startNew)
Rolls back the current transaction if one is active.
-