Destroying a BrokerAdminClient
The following example shows the use of the BrokerAdminClient.destroy method, which is inherited from the BrokerClient class. The client state and event queue for the BrokerAdminClient that is being destroyed will also be destroyed.
. . .
BrokerAdminClient c;
. . .
try {
c.destroy();
} catch (BrokerException ex) {
System.out.println("Error while destroying admin client\n"+ex);
return;
}
. . .