コード例 #1
0
    Async(
        TyrusSession session,
        TyrusRemoteEndpoint remoteEndpoint,
        TyrusEndpointWrapper tyrusEndpointWrapper) {
      super(session, remoteEndpoint, tyrusEndpointWrapper);

      if (session.getContainer() != null) {
        setSendTimeout(session.getContainer().getDefaultAsyncSendTimeout());
      }
    }
コード例 #2
0
 @Override
 public void sendPong(ByteBuffer applicationData) throws IOException {
   if (applicationData != null && applicationData.remaining() > 125) {
     throw new IllegalArgumentException(
         "Pong applicationData exceeded the maximum allowed payload of 125 bytes.");
   }
   session.restartIdleTimeoutExecutor();
   remoteEndpoint.sendPong(applicationData);
 }