blob: 7a5679516e02f13bb40e927fa3b35467016f3ac9 [file] [log] [blame]
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.server.protocol.v1_0;
import java.util.List;
import org.apache.qpid.server.protocol.v1_0.type.transport.Attach;
import org.apache.qpid.server.protocol.v1_0.type.transport.Begin;
import org.apache.qpid.server.protocol.v1_0.type.transport.ChannelFrameBody;
import org.apache.qpid.server.protocol.v1_0.type.transport.Close;
import org.apache.qpid.server.protocol.v1_0.type.transport.Detach;
import org.apache.qpid.server.protocol.v1_0.type.transport.Disposition;
import org.apache.qpid.server.protocol.v1_0.type.transport.End;
import org.apache.qpid.server.protocol.v1_0.type.transport.Error;
import org.apache.qpid.server.protocol.v1_0.type.transport.Flow;
import org.apache.qpid.server.protocol.v1_0.type.transport.Open;
import org.apache.qpid.server.protocol.v1_0.type.transport.Transfer;
public interface ConnectionHandler extends SASLEndpoint
{
void receiveOpen(int channel, Open close);
void receiveClose(int channel, Close close);
void receiveBegin(int channel, Begin begin);
void receiveEnd(int channel, End end);
void receiveAttach(int channel, Attach attach);
void receiveDetach(int channel, Detach detach);
void receiveTransfer(int channel, Transfer transfer);
void receiveDisposition(int channel, Disposition disposition);
void receiveFlow(int channel, Flow flow);
int getMaxFrameSize();
int getChannelMax();
void handleError(Error parsingError);
boolean closedForInput();
void receive(List<ChannelFrameBody> channelFrameBodies);
}