org.camunda.connect.impl
Class AbstractCloseableConnectorResponse

java.lang.Object
  extended by org.camunda.connect.impl.AbstractConnectorResponse
      extended by org.camunda.connect.impl.AbstractCloseableConnectorResponse
All Implemented Interfaces:
CloseableConnectorResponse, ConnectorResponse

public abstract class AbstractCloseableConnectorResponse
extends AbstractConnectorResponse
implements CloseableConnectorResponse

This class is a base class for implementing closeable connector responses based on Closeable.

Author:
Daniel Meyer

Field Summary
 
Fields inherited from class org.camunda.connect.impl.AbstractConnectorResponse
responseParameters
 
Constructor Summary
AbstractCloseableConnectorResponse()
           
 
Method Summary
 void close()
          Implements the default close behavior
protected abstract  Closeable getClosable()
          Allows subclasses to provide the closeable resource.
 
Methods inherited from class org.camunda.connect.impl.AbstractConnectorResponse
collectResponseParameters, getResponseParameter, getResponseParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.connect.spi.ConnectorResponse
getResponseParameter, getResponseParameters
 

Constructor Detail

AbstractCloseableConnectorResponse

public AbstractCloseableConnectorResponse()
Method Detail

close

public void close()
Implements the default close behavior

Specified by:
close in interface CloseableConnectorResponse

getClosable

protected abstract Closeable getClosable()
Allows subclasses to provide the closeable resource.

Returns:
the Closeable resource


Copyright © 2015 camunda services GmbH. All rights reserved.