All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pubnub.api.java.v2.callbacks.handlers.OnFileHandler Maven / Gradle / Ivy

package com.pubnub.api.java.v2.callbacks.handlers;

import com.pubnub.api.models.consumer.pubsub.files.PNFileEventResult;

@FunctionalInterface
public interface OnFileHandler {
    /**
     * 

* This interface is designed for implementing custom handlers that respond to file event retrieval operations. * It defines a single {@code handle} method that is called with a {@link PNFileEventResult} instance, * which contains the file. *

*

* Usage example: *

*
     * {@code
     * OnFileHandler handler = pnFileEventResult -> {
     *     System.out.println("Received file event: " + pnFileEventResult.getMessage());
     * };
     * }
     * 
* * @see PNFileEventResult for more information about the message result provided to this handler. */ void handle(PNFileEventResult pnFileEventResult); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy