SerializableCollection collectionContainer = invokeAndGet(operation);
return (List<Data>) collectionContainer.getCollection();
}
Collection<Data> drainInternal(int maxSize) {
DrainOperation operation = new DrainOperation(name, maxSize);
SerializableCollection collectionContainer = invokeAndGet(operation);
return collectionContainer.getCollection();
}