Package org.apache.qpid.server.session
Interface AMQPSession<S extends AMQPSession<S,X>,X extends ConsumerTarget<X>>
-
- All Superinterfaces:
ConfiguredObject<S>
,ContextProvider
,Deletable<S>
,EventLoggerProvider
,PermissionedObject
,Session<S>
,TaskExecutorProvider
- All Known Implementing Classes:
AbstractAMQPSession
public interface AMQPSession<S extends AMQPSession<S,X>,X extends ConsumerTarget<X>> extends Session<S>, Deletable<S>, EventLoggerProvider
-
-
Field Summary
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
Fields inherited from interface org.apache.qpid.server.model.Session
CHANNEL_ID, PRODUCER_AUTH_CACHE_SIZE, PRODUCER_AUTH_CACHE_SIZE_DEFAULT, PRODUCER_AUTH_CACHE_TIMEOUT, PRODUCER_AUTH_CACHE_TIMEOUT_DEFAULT, PRODUCER_FLOW_BLOCKED, TRANSACTION_TIMEOUT_NOTIFICATION_REPEAT_PERIOD, TRANSACTION_TIMEOUT_NOTIFICATION_REPEAT_PERIOD_DEFAULT
-
-
Method Summary
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.util.Deletable
addDeleteTask, removeDeleteTask
-
Methods inherited from interface org.apache.qpid.server.logging.EventLoggerProvider
getEventLogger
-
Methods inherited from interface org.apache.qpid.server.model.Session
getBytesIn, getBytesOut, getConsumers, getMessagesIn, getMessagesOut, getProducerCount, getTransactedMessagesIn, getTransactedMessagesOut, getUnacknowledgedMessages, isProducerFlowBlocked, resetStatistics
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Method Detail
-
getConnectionReference
Object getConnectionReference()
-
getChannelId
int getChannelId()
- Specified by:
getChannelId
in interfaceSession<S extends AMQPSession<S,X>>
-
getAMQPConnection
AMQPConnection<?> getAMQPConnection()
-
getLogSubject
LogSubject getLogSubject()
-
block
void block(Queue<?> queue)
-
unblock
void unblock(Queue<?> queue)
-
block
void block()
-
unblock
void unblock()
-
getBlocking
boolean getBlocking()
-
getUnacknowledgedMessageCount
int getUnacknowledgedMessageCount()
-
getConsumerCount
long getConsumerCount()
- Specified by:
getConsumerCount
in interfaceSession<S extends AMQPSession<S,X>>
-
getTransactionStartTimeLong
long getTransactionStartTimeLong()
Return the time the current transaction started.- Returns:
- the time this transaction started or 0 if not in a transaction
-
getTransactionUpdateTimeLong
long getTransactionUpdateTimeLong()
Return the time of the last activity on the current transaction.- Returns:
- the time of the last activity or 0 if not in a transaction
-
transportStateChanged
void transportStateChanged()
-
processPending
boolean processPending()
-
addTicker
void addTicker(Ticker ticker)
-
removeTicker
void removeTicker(Ticker ticker)
-
notifyWork
void notifyWork(X target)
-
close
void close()
- Specified by:
close
in interfaceConfiguredObject<S extends AMQPSession<S,X>>
-
doOnIOThreadAsync
com.google.common.util.concurrent.ListenableFuture<Void> doOnIOThreadAsync(Runnable task)
-
registerTransactedMessageReceived
void registerTransactedMessageReceived()
-
registerTransactedMessageDelivered
void registerTransactedMessageDelivered()
-
registerMessageReceived
void registerMessageReceived(long size)
-
registerMessageDelivered
void registerMessageDelivered(long size)
-
-