本文整理汇总了Java中io.netty.util.Recycler.Handle类的典型用法代码示例。如果您正苦于以下问题:Java Handle类的具体用法?Java Handle怎么用?Java Handle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Handle类属于io.netty.util.Recycler包,在下文中一共展示了Handle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ChannelOutboundBuffer
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private ChannelOutboundBuffer(Handle handle) {
this.handle = handle;
buffer = new Entry[INITIAL_CAPACITY];
for (int i = 0; i < buffer.length; i++) {
buffer[i] = new Entry();
}
nioBuffers = new ByteBuffer[INITIAL_CAPACITY];
}
开发者ID:kyle-liu,项目名称:netty4study,代码行数:12,代码来源:ChannelOutboundBuffer.java
示例2: ChannelOutboundBuffer
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private ChannelOutboundBuffer(Handle<ChannelOutboundBuffer> handle) {
this.handle = handle;
buffer = new Entry[INITIAL_CAPACITY];
for (int i = 0; i < buffer.length; i++) {
buffer[i] = new Entry();
}
nioBuffers = new ByteBuffer[INITIAL_CAPACITY];
}
开发者ID:nathanchen,项目名称:netty-netty-5.0.0.Alpha1,代码行数:11,代码来源:ChannelOutboundBuffer.java
示例3: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
@Override
protected PendingCommand newObject(Handle<PendingCommand> handle) {
return new PendingCommand(handle);
}
开发者ID:HubSpot,项目名称:NioImapClient,代码行数:5,代码来源:ImapClient.java
示例4: PendingCommand
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
public PendingCommand(Handle<PendingCommand> handle) {
this.handle = handle;
}
开发者ID:HubSpot,项目名称:NioImapClient,代码行数:4,代码来源:ImapClient.java
示例5: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
@Override
protected CallbackTask newObject(Recycler.Handle<CallbackTask> handle) {
return new CallbackTask(handle);
}
开发者ID:spccold,项目名称:sailfish,代码行数:5,代码来源:BytesResponseFuture.java
示例6: CallbackTask
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
public CallbackTask(Handle<CallbackTask> handle) {
this.handle = handle;
}
开发者ID:spccold,项目名称:sailfish,代码行数:4,代码来源:BytesResponseFuture.java
示例7: CallbackCheckTask
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
public CallbackCheckTask(Handle<CallbackCheckTask> handle) {
this.handle = handle;
}
开发者ID:spccold,项目名称:sailfish,代码行数:4,代码来源:BytesResponseFuture.java
示例8: ProducerSendCallback
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private ProducerSendCallback(Handle<ProducerSendCallback> recyclerHandle) {
this.recyclerHandle = recyclerHandle;
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:4,代码来源:NonPersistentReplicator.java
示例9: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
@Override
protected ProducerSendCallback newObject(Handle<ProducerSendCallback> handle) {
return new ProducerSendCallback(handle);
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:5,代码来源:NonPersistentReplicator.java
示例10: MessagePublishContext
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private MessagePublishContext(Handle<MessagePublishContext> recyclerHandle) {
this.recyclerHandle = recyclerHandle;
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:4,代码来源:Producer.java
示例11: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
protected MessagePublishContext newObject(Recycler.Handle<MessagePublishContext> handle) {
return new MessagePublishContext(handle);
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:4,代码来源:Producer.java
示例12: ReplicationMetrics
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private ReplicationMetrics(Handle<ReplicationMetrics> recyclerHandle) {
this.recyclerHandle = recyclerHandle;
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:4,代码来源:ReplicationMetrics.java
示例13: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
@Override
protected ReplicationMetrics newObject(Recycler.Handle<ReplicationMetrics> handle) {
return new ReplicationMetrics(handle);
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:5,代码来源:ReplicationMetrics.java
示例14: WriteInEventLoopCallback
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private WriteInEventLoopCallback(Handle<WriteInEventLoopCallback> recyclerHandle) {
this.recyclerHandle = recyclerHandle;
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:4,代码来源:ProducerImpl.java
示例15: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
@Override
protected WriteInEventLoopCallback newObject(Handle<WriteInEventLoopCallback> handle) {
return new WriteInEventLoopCallback(handle);
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:5,代码来源:ProducerImpl.java
示例16: OpSendMsg
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private OpSendMsg(Handle<OpSendMsg> recyclerHandle) {
this.recyclerHandle = recyclerHandle;
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:4,代码来源:ProducerImpl.java
示例17: MessageImpl
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private MessageImpl(Handle<MessageImpl> recyclerHandle) {
this.recyclerHandle = recyclerHandle;
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:4,代码来源:MessageImpl.java
示例18: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
@Override
protected MessageImpl newObject(Handle<MessageImpl> handle) {
return new MessageImpl(handle);
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:5,代码来源:MessageImpl.java
示例19: newObject
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
@Override
protected DoubleByteBuf newObject(Recycler.Handle<DoubleByteBuf> handle) {
return new DoubleByteBuf(handle);
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:5,代码来源:DoubleByteBuf.java
示例20: DoubleByteBuf
import io.netty.util.Recycler.Handle; //导入依赖的package包/类
private DoubleByteBuf(Handle<DoubleByteBuf> recyclerHandle) {
super(Integer.MAX_VALUE);
this.recyclerHandle = recyclerHandle;
}
开发者ID:apache,项目名称:incubator-pulsar,代码行数:5,代码来源:DoubleByteBuf.java
注:本文中的io.netty.util.Recycler.Handle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论