Apache.NMS.ActiveMQ.Commands.RemoveInfo.visit C# (CSharp) Method

visit() public method

public visit ( ICommandVisitor visitor ) : Response
visitor ICommandVisitor
return Response
        public override Response visit(ICommandVisitor visitor)
        {
            switch(objectId.GetDataStructureType())
            {
                case ConnectionId.ID_CONNECTIONID:
                    return visitor.processRemoveConnection((ConnectionId) objectId);
                case SessionId.ID_SESSIONID:
                    return visitor.processRemoveSession((SessionId) objectId);
                case ConsumerId.ID_CONSUMERID:
                    return visitor.processRemoveConsumer((ConsumerId) objectId);
                case ProducerId.ID_PRODUCERID:
                    return visitor.processRemoveProducer((ProducerId) objectId);
                default:
                    throw new IOException("Unknown remove command type: " + objectId.GetDataStructureType());
            }
        }