All Downloads are FREE. Search and download functionalities are using the official Maven repository.

swim.api.ws.WsLane Maven / Gradle / Ivy

There is a newer version: 4.3.15
Show newest version
// Copyright 2015-2021 Swim Inc.
//
// Licensed 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 swim.api.ws;

import swim.api.Lane;
import swim.api.ws.function.DidReadFrameWs;
import swim.api.ws.function.DidUpgradeWs;
import swim.api.ws.function.DidWriteFrameWs;
import swim.api.ws.function.DoUpgradeWs;
import swim.api.ws.function.WillReadFrameWs;
import swim.api.ws.function.WillUpgradeWs;
import swim.api.ws.function.WillWriteFrameWs;
import swim.ws.WsControlFrame;
import swim.ws.WsDataFrame;

public interface WsLane extends Lane {

  @Override
  WsLane observe(Object observer);

  @Override
  WsLane unobserve(Object observer);

  WsLane willUpgrade(WillUpgradeWs willUpgrade);

  WsLane doUpgrade(DoUpgradeWs doUpgrade);

  WsLane didUpgrade(DidUpgradeWs didUpgrade);

  WsLane willReadFrame(WillReadFrameWs willReadFrame);

  WsLane didReadFrame(DidReadFrameWs didReadFrame);

  WsLane willWriteFrame(WillWriteFrameWs willWriteFrame);

  WsLane didWriteFrame(DidWriteFrameWs didWriteFrame);

   void write(WsDataFrame frame);

   void write(WsControlFrame frame);

}