Java 类io.netty.util.Recycler.Handle 实例源码

项目:netty4study    文件:ChannelOutboundBuffer.java   
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];
}
项目:netty-netty-5.0.0.Alpha1    文件:ChannelOutboundBuffer.java   
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];
}
项目:NioImapClient    文件:ImapClient.java   
@Override
protected PendingCommand newObject(Handle<PendingCommand> handle) {
  return new PendingCommand(handle);
}
项目:NioImapClient    文件:ImapClient.java   
public PendingCommand(Handle<PendingCommand> handle) {
  this.handle = handle;
}
项目:sailfish    文件:BytesResponseFuture.java   
@Override
protected CallbackTask newObject(Recycler.Handle<CallbackTask> handle) {
    return new CallbackTask(handle);
}
项目:sailfish    文件:BytesResponseFuture.java   
public CallbackTask(Handle<CallbackTask> handle) {
    this.handle = handle;
}
项目:sailfish    文件:BytesResponseFuture.java   
@Override
protected CallbackCheckTask newObject(Recycler.Handle<CallbackCheckTask> handle) {
    return new CallbackCheckTask(handle);
}
项目:sailfish    文件:BytesResponseFuture.java   
public CallbackCheckTask(Handle<CallbackCheckTask> handle) {
    this.handle = handle;
}
项目:incubator-pulsar    文件:NonPersistentReplicator.java   
private ProducerSendCallback(Handle<ProducerSendCallback> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:NonPersistentReplicator.java   
@Override
protected ProducerSendCallback newObject(Handle<ProducerSendCallback> handle) {
    return new ProducerSendCallback(handle);
}
项目:incubator-pulsar    文件:Producer.java   
private MessagePublishContext(Handle<MessagePublishContext> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:Producer.java   
protected MessagePublishContext newObject(Recycler.Handle<MessagePublishContext> handle) {
    return new MessagePublishContext(handle);
}
项目:incubator-pulsar    文件:PersistentReplicator.java   
private ProducerSendCallback(Handle<ProducerSendCallback> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:PersistentReplicator.java   
@Override
protected ProducerSendCallback newObject(Handle<ProducerSendCallback> handle) {
    return new ProducerSendCallback(handle);
}
项目:incubator-pulsar    文件:ReplicationMetrics.java   
private ReplicationMetrics(Handle<ReplicationMetrics> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:ReplicationMetrics.java   
@Override
protected ReplicationMetrics newObject(Recycler.Handle<ReplicationMetrics> handle) {
    return new ReplicationMetrics(handle);
}
项目:incubator-pulsar    文件:ProducerImpl.java   
private WriteInEventLoopCallback(Handle<WriteInEventLoopCallback> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:ProducerImpl.java   
@Override
protected WriteInEventLoopCallback newObject(Handle<WriteInEventLoopCallback> handle) {
    return new WriteInEventLoopCallback(handle);
}
项目:incubator-pulsar    文件:ProducerImpl.java   
private OpSendMsg(Handle<OpSendMsg> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:ProducerImpl.java   
@Override
protected OpSendMsg newObject(Handle<OpSendMsg> handle) {
    return new OpSendMsg(handle);
}
项目:incubator-pulsar    文件:MessageImpl.java   
private MessageImpl(Handle<MessageImpl> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:MessageImpl.java   
@Override
protected MessageImpl newObject(Handle<MessageImpl> handle) {
    return new MessageImpl(handle);
}
项目:incubator-pulsar    文件:DoubleByteBuf.java   
@Override
protected DoubleByteBuf newObject(Recycler.Handle<DoubleByteBuf> handle) {
    return new DoubleByteBuf(handle);
}
项目:incubator-pulsar    文件:DoubleByteBuf.java   
private DoubleByteBuf(Handle<DoubleByteBuf> recyclerHandle) {
    super(Integer.MAX_VALUE);
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:ByteBufCodedOutputStream.java   
private ByteBufCodedOutputStream(Handle<ByteBufCodedOutputStream> handle) {
    this.recyclerHandle = handle;
}
项目:incubator-pulsar    文件:ByteBufCodedOutputStream.java   
protected ByteBufCodedOutputStream newObject(Recycler.Handle<ByteBufCodedOutputStream> handle) {
    return new ByteBufCodedOutputStream(handle);
}
项目:incubator-pulsar    文件:ByteBufCodedInputStream.java   
private ByteBufCodedInputStream(Handle<ByteBufCodedInputStream> handle) {
    this.recyclerHandle = handle;
}
项目:incubator-pulsar    文件:ByteBufCodedInputStream.java   
protected ByteBufCodedInputStream newObject(Recycler.Handle<ByteBufCodedInputStream> handle) {
    return new ByteBufCodedInputStream(handle);
}
项目:incubator-pulsar    文件:OpReadEntry.java   
private OpReadEntry(Handle<OpReadEntry> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:OpReadEntry.java   
protected OpReadEntry newObject(Recycler.Handle<OpReadEntry> recyclerHandle) {
    return new OpReadEntry(recyclerHandle);
}
项目:incubator-pulsar    文件:OpAddEntry.java   
private OpAddEntry(Handle<OpAddEntry> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:incubator-pulsar    文件:OpAddEntry.java   
protected OpAddEntry newObject(Recycler.Handle<OpAddEntry> recyclerHandle) {
    return new OpAddEntry(recyclerHandle);
}
项目:incubator-pulsar    文件:EntryImpl.java   
@Override
protected EntryImpl newObject(Handle<EntryImpl> handle) {
    return new EntryImpl(handle);
}
项目:incubator-pulsar    文件:EntryImpl.java   
private EntryImpl(Recycler.Handle<EntryImpl> recyclerHandle) {
    this.recyclerHandle = recyclerHandle;
}
项目:netty4.0.27Learn    文件:ChannelOutboundBuffer.java   
@Override
protected Entry newObject(Handle handle) {
    return new Entry(handle);
}
项目:netty4.0.27Learn    文件:ChannelOutboundBuffer.java   
private Entry(Handle handle) {
    this.handle = handle;
}
项目:netty4.0.27Learn    文件:ByteBufUtil.java   
@Override
protected ThreadLocalUnsafeDirectByteBuf newObject(Handle handle) {
    return new ThreadLocalUnsafeDirectByteBuf(handle);
}
项目:netty4.0.27Learn    文件:ByteBufUtil.java   
private ThreadLocalUnsafeDirectByteBuf(Handle handle) {
    super(UnpooledByteBufAllocator.DEFAULT, 256, Integer.MAX_VALUE);
    this.handle = handle;
}
项目:netty4.0.27Learn    文件:ByteBufUtil.java   
@Override
protected ThreadLocalDirectByteBuf newObject(Handle handle) {
    return new ThreadLocalDirectByteBuf(handle);
}
项目:netty4.0.27Learn    文件:ByteBufUtil.java   
private ThreadLocalDirectByteBuf(Handle handle) {
    super(UnpooledByteBufAllocator.DEFAULT, 256, Integer.MAX_VALUE);
    this.handle = handle;
}