public interface ReplyParser<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ReplyParser.FailureHandler<U> |
static interface |
ReplyParser.PartialReplyHandler<T,U> |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,R> ReplyParser<R> |
combine(ReplyParser<? extends T1> parser1,
ReplyParser<? extends T2> parser2,
BiFunction<? super T1,? super T2,? extends R> fn) |
default <R> ReplyParser<R> |
fail(Function<? super T,? extends Throwable> mapper) |
default <R> ReplyParser<R> |
fail(Throwable e) |
default <R> ReplyParser<R> |
map(Function<? super T,? extends R> mapper) |
<U> U |
parseReply(ByteBuffer buffer,
Function<? super T,U> resultHandler,
ReplyParser.PartialReplyHandler<? super T,U> partialReplyHandler,
ReplyParser.FailureHandler<U> failureHandler,
CharsetDecoder charsetDecoder) |
<U> U parseReply(ByteBuffer buffer, Function<? super T,U> resultHandler, ReplyParser.PartialReplyHandler<? super T,U> partialReplyHandler, ReplyParser.FailureHandler<U> failureHandler, CharsetDecoder charsetDecoder)
default <R> ReplyParser<R> map(Function<? super T,? extends R> mapper)
default <R> ReplyParser<R> fail(Function<? super T,? extends Throwable> mapper)
default <R> ReplyParser<R> fail(Throwable e)
static <T1,T2,R> ReplyParser<R> combine(ReplyParser<? extends T1> parser1, ReplyParser<? extends T2> parser2, BiFunction<? super T1,? super T2,? extends R> fn)
Copyright © 2016. All rights reserved.