@Override public ChannelHandler[] getServerChannelHandlers() { PartitionRequestQueue queueOfPartitionQueues = new PartitionRequestQueue(); PartitionRequestServerHandler serverHandler = new PartitionRequestServerHandler( partitionProvider, taskEventDispatcher, queueOfPartitionQueues); return new ChannelHandler[] { messageEncoder, createFrameLengthDecoder(), messageDecoder, serverHandler, queueOfPartitionQueues }; }
request.queueIndex); } catch (PartitionNotFoundException notFound) { respondWithError(ctx, notFound, request.receiverId); respondWithError(ctx, new IllegalArgumentException("Task event receiver not found."), request.receiverId); respondWithError(ctx, t);
PartitionRequestServerHandler serverHandler = new PartitionRequestServerHandler( partitionProvider, taskEventDispatcher, queueOfPartitionQueues, creditBasedEnabled);
respondWithError(ctx, notFound, request.receiverId); respondWithError(ctx, new IllegalArgumentException("Task event receiver not found."), request.receiverId); respondWithError(ctx, t);
PartitionRequestServerHandler serverHandler = new PartitionRequestServerHandler( partitionProvider, taskEventDispatcher, queueOfPartitionQueues, creditBasedEnabled);
respondWithError(ctx, notFound, request.receiverId); respondWithError(ctx, new IllegalArgumentException("Task event receiver not found."), request.receiverId); respondWithError(ctx, t);
PartitionRequestServerHandler serverHandler = new PartitionRequestServerHandler( partitionProvider, taskEventDispatcher, queueOfPartitionQueues, creditBasedEnabled);
respondWithError(ctx, notFound, request.receiverId); } catch (Throwable t) { respondWithError(ctx, new DataConsumptionException(request.partitionId, t), request.receiverId); respondWithError(ctx, new IllegalArgumentException("Task event receiver not found."), request.receiverId); respondWithError(ctx, t);