Search in sources :

Example 1 with CommandGetTopicsOfNamespace

use of org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace in project incubator-pulsar by apache.

the class Commands method newGetTopicsOfNamespaceRequest.

public static ByteBuf newGetTopicsOfNamespaceRequest(String namespace, long requestId) {
    CommandGetTopicsOfNamespace.Builder topicsBuilder = CommandGetTopicsOfNamespace.newBuilder();
    topicsBuilder.setNamespace(namespace).setRequestId(requestId);
    CommandGetTopicsOfNamespace topicsCommand = topicsBuilder.build();
    ByteBuf res = serializeWithSize(BaseCommand.newBuilder().setType(Type.GET_TOPICS_OF_NAMESPACE).setGetTopicsOfNamespace(topicsCommand));
    topicsBuilder.recycle();
    topicsCommand.recycle();
    return res;
}
Also used : ByteBuf(io.netty.buffer.ByteBuf) CommandGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace)

Aggregations

ByteBuf (io.netty.buffer.ByteBuf)1 CommandGetTopicsOfNamespace (org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace)1