Interface ArchiveDataProvider



  • public interface ArchiveDataProvider
    Provider of archive data that holds data. example of usage: { ArchiveDataProvider provider = ... ; while(provider.containtData()) { D2Val [] data = provider.waitForData(); } }
    • Method Detail

      • waitForData

        sk.ipesoft.d2000.base.UnivalValue<?>[] waitForData​()
                                                    throws java.lang.InterruptedException,
                                                           D2JapiException
        Wait until some data came from archive and return them.
        Returns:
        data or null if no more data is available.
        Throws:
        java.lang.InterruptedException - when interrupted during wait
        D2JapiException - when request refused by kernel
      • waitForData

        sk.ipesoft.d2000.base.UnivalValue<?>[] waitForData​(long timeoutMilliseconds)
                                                    throws java.lang.InterruptedException,
                                                           D2JapiException
        Wait until some data came from archive or specified timeout.
        Parameters:
        timeoutMilliseconds - timeout limit im milliseconds
        Returns:
        data or null if no data is available or timeout is reached.
        Throws:
        java.lang.InterruptedException - when interrupted during wait
        D2JapiException - when request refused by kernel
      • containtData

        boolean containtData​()
        Returns:
        if provider contains any data
      • getDescription

        ArchiveObjectDescription getDescription​()
        Get current snapshot of configuration of archived tag.
        Returns:
        configuration