Understanding the PTDirectTransferObject Class

The PTDirectTransferObject class provides methods and built-in functions for real-time indexing using DirectTransfer. Application developers can use this class to do a synchronous cURL transfer to the Elasticsearch server to update their indexes when they save a component. The built-in functions handle the synchronous communication to the target URL. Any return code (Success/Failure) should be handled by the calling code.