org.glassfish.grizzly.Connection.getWriteTimeout()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(10.1k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.glassfish.grizzly.Connection.getWriteTimeout()方法的一些代码示例,展示了Connection.getWriteTimeout()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connection.getWriteTimeout()方法的具体详情如下:
包路径:org.glassfish.grizzly.Connection
类名称:Connection
方法名:getWriteTimeout

Connection.getWriteTimeout介绍

[英]Returns the current value for the blocking write timeout converted to the provided TimeUnit specification. If this value hasn't been explicitly set, it will default to #DEFAULT_WRITE_TIMEOUT seconds.
[中]返回转换为提供的时间单位规范的阻塞写入超时的当前值。如果未明确设置此值,它将默认为#default_WRITE_TIMEOUT seconds。

代码示例

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

/**
 * {@inheritDoc}
 */
@Override
public void write(final Connection<SocketAddress> connection,
    final SocketAddress dstAddress, final WritableMessage message,
    final CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final MessageCloner<WritableMessage> messageCloner) {
  
  write(connection, dstAddress, message, completionHandler,
      null,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public void write(
    Connection<SocketAddress> connection, SocketAddress dstAddress,
    WritableMessage message,
    CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler,
    final org.glassfish.grizzly.asyncqueue.PushBackHandler pushBackHandler) {
  write(connection, dstAddress, message, completionHandler,
      pushBackHandler,
      connection.getWriteTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}

相关文章