liuhua
liuhua

Reputation: 73

How can I new a promise without channel in netty 4.1

I found two way to new a promise

  1. http://netty.io/4.1/api/io/netty/channel/ChannelOutboundInvoker.html#newPromise()

This way need an existed channel instance

  1. http://netty.io/4.1/api/io/netty/util/concurrent/DefaultPromise.html#DefaultPromise()

This method is protected

If i can new a generic promise without channel ?

Upvotes: 1

Views: 837

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

EventExecutor.newPromise().

See also: http://netty.io/4.1/api/io/netty/util/concurrent/EventExecutor.html#newPromise()

Upvotes: 1

Related Questions