Interface IConnectionBuilder


public interface IConnectionBuilder
  • Method Details

    • protoBufferHandler

      <TProtoBuffer extends com.google.protobuf.GeneratedMessageV3> void protoBufferHandler(@NotNull @NotNull Class<TProtoBuffer> protoBufferClass, @NotNull @NotNull IMessageHandler<IConnectionDispatchContext,TProtoBuffer> handler)
      프로토 버퍼를 전달받았을때 실행할 처리자를 등록
      Type Parameters:
      TProtoBuffer - 처리할 프로토 버퍼 타입
      Parameters:
      protoBufferClass - 등록할 프로토버퍼 클래스
      handler - 처리자
    • packetHandler

      <TProtoBuffer extends com.google.protobuf.GeneratedMessageV3> void packetHandler(@NotNull @NotNull Class<TProtoBuffer> protoBufferClass, @NotNull @NotNull IPacketMessageHandler<IConnectionDispatchContext> handler)
      프로토 버퍼를 전달받았을때 실행할 처리자를 등록
      Type Parameters:
      TProtoBuffer - 처리할 프로토 버퍼 타입
      Parameters:
      protoBufferClass - 등록할 프로토버퍼 클래스
      handler - 처리자
    • packetHandler

      void packetHandler(int customMsgId, @NotNull @NotNull IPacketMessageHandler<IConnectionDispatchContext> handler)
      커스텀 메시지를 전달받았을때 실행할 처리자를 등록
      Parameters:
      customMsgId - 메시지 아이디
      handler - 처리자