Besonderhede van voorbeeld: -7270606930558925959

Metadata

Data

English[en]
Configurations and Monitoring are abstracted out /** * See the API documentation on how to run a transfer once you have a TransferHook * */ public interface TransferRunner {public abstract void runTransfer(Pair<TransferHook,FCClient> clientHookPair);} /** * See the API documentation for details on how to configure our FCClient objects * */ private void configConnectAndLogin(FCClient nextClient) {//fill in your configuration and connection methods here} public Pair<TransferHook,FCClient> initTransfer(File aFile,LinkedBlockingQueue<FCClient> clientPool) {TransferHook hook = null; Pair<TransferHook,FCClient> pair = null; try {FCClient nextClient = clientPool.take(); configConnectAndLogin(nextClient); hook = nextClient.upload(aFile); pair = new Pair<>(hook,nextClient);} catch (Exception e) {} return pair;}
Nepali[ne]
/ ** * ट्राफरफर हुक एक पटक कसरी स्थानान्तरण चलाउने API एपिआई हेर्नुहोस्। * * / सार्वजनिक इन्फरफेस ट्राफिकरनर {सार्वजनिक सार स्ट्रीट शून्य ट्रान्सफर (जोयर <TransferHook, FCClient> clientHookPair);} / ** * हाम्रो FCClient वस्तुहरू कन्फिगर गर्ने बारे विस्तृत जानकारीका लागि API कागजात हेर्नुहोस् * * / निजी शून्य कन्फिगर कन्टेन्सनएन्डलगइन (अर्को FCClient अर्को क्लाइन्ट) {// भरपूर तपाइँको कन्फिगरेसन र जडान विधिहरू यहाँ] सार्वजनिक जोडी <TransferHook, FCClient> initTransfer (फाइल aFile, LinkedBlockingQueue <FCClient> क्लाइंटपूल) {TransferHook hook = null; जोडी <स्थानान्तरण हुक, FCClient> जोडी = null; {FCClient nextClient = clientPool.take () प्रयास गर्नुहोस् configConnectAndLogin (nextClient); हुक = nextClient.upload (aFile); जोडा = नयाँ जोडी <> (हुक, अर्कोक्लाइन्ट);} पकड (अपवाद ई) {} फिर्ती जोडा;}

History

Your action: