@Override
public void messageFlush(Session session, MessageFlush method)
{
String destination = method.getDestination();
Subscription_0_10 sub = ((ServerSession)session).getSubscription(destination);
if(sub == null)
{
exception(session, method, ExecutionErrorCode.NOT_FOUND, "not-found: destination '"+destination+"'");
}
else
{
try
{
sub.flush();
}
catch (AMQException e)
{
exception(session, method, e, "Cannot flush subscription '" + destination);
}