What is better way to read from archive with d2japi


There are two similar methods in D2Session called getArchiveData. Which one is better?



both methods are good and it depends on your situation which one serves you better.
That one returning FutureEvent is meant for synchronous waiting in single thread, which is easier to write.
That second one with ArchiveDataListener dataListener parameter allows for better performance with asynchronous data processing.