public DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel) throws IOException, InterruptedException { return cfind(cuid, priority, data, tsuid, autoCancel, Integer.MAX_VALUE); }
public DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel) throws IOException, InterruptedException { return cfind(cuid, priority, data, tsuid, autoCancel, Integer.MAX_VALUE); }
private void query(Attributes keys, DimseRSPHandler rspHandler) throws IOException, InterruptedException { as.cfind(model.cuid, priority, keys, null, rspHandler); }
private void query(Attributes keys, DimseRSPHandler rspHandler) throws IOException, InterruptedException { as.cfind(model.cuid, priority, keys, null, rspHandler); }
/** * Send C-FIND-RQ returning a {@code DimseRSP} which {@link DimseRSP#next()} blocks until the next C-FIND-RSP is * received. * * Reading C-FIND-RSPs from the association blocks, if the number of received C-FIND-RSP buffered * in the returned {@code DimseRSP} reached the specified {@code capacity}, until a buffered C-FIND-RSP is * removed by a call of {@link DimseRSP#next()}. * * @param cuid SOP Class UID associated with the operation * @param priority priority of the C-FIND operation. 0 = MEDIUM, 1 = HIGH, 2 = LOW * @param data Data Set that encodes the Identifier to be matched * @param tsuid Transfer Syntax used to encode the Identifier * @param autoCancel Number of pending C-FIND RSP after which a C-CANCEL-RQ will be sent * @param capacity Buffer size for received pending C-FIND-RSP * @return a {@code DimseRSP} which {@link DimseRSP#next()} blocks until the next C-FIND-RSP is received * @throws IOException if there is an error sending the C-FIND-RQ * @throws InterruptedException if any thread interrupted the current thread before or while the current * thread was waiting for other invoked operations getting completed */ public DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel, int capacity) throws IOException, InterruptedException { FutureDimseRSP rsp = new FutureDimseRSP(nextMessageID()); rsp.setAutoCancel(autoCancel); rsp.setCapacity(capacity); cfind(cuid, priority, data, tsuid, rsp); return rsp; }
/** * Send C-FIND-RQ returning a {@code DimseRSP} which {@link DimseRSP#next()} blocks until the next C-FIND-RSP is * received. * * Reading C-FIND-RSPs from the association blocks, if the number of received C-FIND-RSP buffered * in the returned {@code DimseRSP} reached the specified {@code capacity}, until a buffered C-FIND-RSP is * removed by a call of {@link DimseRSP#next()}. * * @param cuid SOP Class UID associated with the operation * @param priority priority of the C-FIND operation. 0 = MEDIUM, 1 = HIGH, 2 = LOW * @param data Data Set that encodes the Identifier to be matched * @param tsuid Transfer Syntax used to encode the Identifier * @param autoCancel Number of pending C-FIND RSP after which a C-CANCEL-RQ will be sent * @param capacity Buffer size for received pending C-FIND-RSP * @return a {@code DimseRSP} which {@link DimseRSP#next()} blocks until the next C-FIND-RSP is received * @throws IOException if there is an error sending the C-FIND-RQ * @throws InterruptedException if any thread interrupted the current thread before or while the current * thread was waiting for other invoked operations getting completed */ public DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel, int capacity) throws IOException, InterruptedException { FutureDimseRSP rsp = new FutureDimseRSP(nextMessageID()); rsp.setAutoCancel(autoCancel); rsp.setCapacity(capacity); cfind(cuid, priority, data, tsuid, rsp); return rsp; }