本文整理了Java中org.glassfish.grizzly.Connection.getWriteTimeout()
方法的一些代码示例,展示了Connection.getWriteTimeout()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connection.getWriteTimeout()
方法的具体详情如下:
包路径:org.glassfish.grizzly.Connection
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!