Search in sources :

Example 6 with ErrorCondition

use of org.apache.qpid.server.protocol.v1_0.type.ErrorCondition in project qpid-broker-j by apache.

the class Session_1_0 method close.

public void close(ErrorCondition condition, String message) {
    performCloseTasks();
    final End end = new End();
    final Error theError = new Error();
    theError.setDescription(message);
    theError.setCondition(condition);
    end.setError(theError);
    end(end);
}
Also used : Error(org.apache.qpid.server.protocol.v1_0.type.transport.Error) AmqpError(org.apache.qpid.server.protocol.v1_0.type.transport.AmqpError) SessionError(org.apache.qpid.server.protocol.v1_0.type.transport.SessionError) LinkError(org.apache.qpid.server.protocol.v1_0.type.transport.LinkError) End(org.apache.qpid.server.protocol.v1_0.type.transport.End)

Aggregations

AmqpError (org.apache.qpid.server.protocol.v1_0.type.transport.AmqpError)4 Error (org.apache.qpid.server.protocol.v1_0.type.transport.Error)4 ErrorCondition (org.apache.qpid.server.protocol.v1_0.type.ErrorCondition)3 ConnectionError (org.apache.qpid.server.protocol.v1_0.type.transport.ConnectionError)3 PrivilegedAction (java.security.PrivilegedAction)2 Symbol (org.apache.qpid.server.protocol.v1_0.type.Symbol)2 Close (org.apache.qpid.server.protocol.v1_0.type.transport.Close)2 End (org.apache.qpid.server.protocol.v1_0.type.transport.End)2 ConnectionScopedRuntimeException (org.apache.qpid.server.util.ConnectionScopedRuntimeException)2 ServerScopedRuntimeException (org.apache.qpid.server.util.ServerScopedRuntimeException)2 Iterators (com.google.common.collect.Iterators)1 PeekingIterator (com.google.common.collect.PeekingIterator)1 Sets (com.google.common.collect.Sets)1 Futures.allAsList (com.google.common.util.concurrent.Futures.allAsList)1 ListenableFuture (com.google.common.util.concurrent.ListenableFuture)1 SocketAddress (java.net.SocketAddress)1 ByteBuffer (java.nio.ByteBuffer)1 AccessControlContext (java.security.AccessControlContext)1 AccessControlException (java.security.AccessControlException)1 AccessController (java.security.AccessController)1